package com.zhuss.team.db.dao.ext;

import com.zhuss.bean.bo.team.question.SearchQuestionBo;
import com.zhuss.bean.vo.team.question.DetailQuestionVo;
import com.zhuss.bean.vo.team.question.ListQuestionVo;
import com.zhuss.team.db.dao.gen.QuestionMapper;
import com.zhuss.team.db.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionDao extends QuestionMapper{
    void create(Question q);

    void delete(Question q);

    List<ListQuestionVo> list(SearchQuestionBo bo);

    Integer countList(SearchQuestionBo bo);

    List<Question> listAll(@Param("area") Integer area, @Param("status") Integer status);

    DetailQuestionVo detail(@Param("questionId") Long questionId);

    List<Question> listQuestion(@Param("questionIdList") List<Long> questionIdList);

}